import vue from "vue";
import vuex from 'vuex'
//vuex是插件需要使用
vue.use(vuex)
import home from './home.store/home.store'
import search from './search.store/search.store'
import detail from './detail.store/detail.store'
import shopcart from './shopCart.store/shopCart.store'
import user from './user.store/user.store'
import trade from './trade.store/trade.store'

//对外暴露
export default new vuex.Store({
    modules:{
        home,search,detail,shopcart,user,trade
    }
    
})
